package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 采集商品任务业务对象 erp_collect_product_task
 *
 * @author erp
 * @date 2023-03-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectProductTaskBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    private String ids;

    private String hasCollectUserId;

    /**
     * 采集链接
     */
    @NotBlank(message = "采集链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String collectUrl;

    /**
     * 采集类型（1速卖通）
     */
    //@NotBlank(message = "采集类型（1速卖通）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String category;

    /**
     * 采集状态（-1页面未找到 0待命 1进行中 2完成 3采集异常 4保存异常）
     */
    //@NotBlank(message = "采集状态（-1页面未找到 0待命 1进行中 2完成 3采集异常 4保存异常）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 乐观锁
     */
    //@NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;

    private String collectDuration;
    private String collectBy;
    private Date collectTime;

    private Long collectUserId;
    
    private Integer isOptimize;
    private Integer isTranslate;
    
    private Long categoryId;
    private String customAttributes;
    private String classifyLabel;
    private Integer collectType;

}
